//admin公共初始化模块
$(function(){
	main.run();	
});


var main = {
	run: function(){
		this._init();
		this._start();
		this._init_events();
	},
	
	_init: function(){		
		this.contextPath = $("#contextPath").val() || '';		
	},
		
	_start: function(){		
		var path = location.pathname;				
		$("#admin_nav_ul > li > a").each(function(){
			var href = $(this).attr("href");
			if(path.indexOf(href) == 0){
				$(this).css("color", "red");
				return false;
			}
		});
	},
	
	_init_events: function(){				

	}
};